import dayjs from 'dayjs';

export default [
  {
    title: '生产型号',
    key: 'moduleNo'
  },
  {
    key: 'modifyTime',
    title: '录入时间',
    customRender: row => {
      return dayjs(row.modifyTime).format('YYYY-MM-DD HH:mm:ss');
    }
  },
  { key: 'inspectType', title: '检验类型' },
  { key: 'quantity', title: '数量' },
  { key: 'thickness', title: '板厚' },
  { key: 'dimensionsRequired', title: '外形尺寸要求' },
  { key: 'dimensionsMeasured', title: '外形尺寸实测' },
  { key: 'upperLowerKnivesAlignmentRequired', title: 'V-CUT上下刀对准度要求' },
  { key: 'upperLowerKnivesAlignmentMeasured', title: 'V-CUT上下刀对准度实测' },
  { key: 'vcutT', title: '残厚要求' },
  { key: 'vcutB', title: '角度要求' },
  { key: 'residualThicknessMeasuredA', title: '残厚实测a' },
  { key: 'angleMeasuredA', title: '角度实测a' },
  { key: 'residualThicknessMeasuredB', title: '残厚实测b' },
  { key: 'angleMeasuredB', title: '角度实测b' },
  { key: 'residualThicknessMeasuredC', title: '残厚实测c' },
  { key: 'angleMeasuredC', title: '角度实测c' },
  { key: 'residualThicknessMeasuredD', title: '残厚实测d' },
  { key: 'angleMeasuredD', title: '角度实测d' },
  { key: 'residualThicknessMeasuredE', title: '残厚实测e' },
  { key: 'angleMeasuredE', title: '角度实测e' },
  { key: 'residualThicknessMeasuredF', title: '残厚实测f' },
  { key: 'angleMeasuredF', title: '角度实测f' },
  { key: 'result', title: '判定' },
  {
    key: 'shiftType',
    title: '班别',
    customRender: row => {
      return ['白班', '夜班'][row.shiftType];
    }
  },
  { key: 'operator', title: '检验员' },
  { key: 'checker', title: '审核人' },
  { key: 'checkTime', title: '审核时间' },
  { key: 'remark', title: '备注' }
];
